<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>

<div class="news-form">
    <?php $form = ActiveForm::begin();
    ?>
<?= $form->field($model,'cateId')->textInput(); ?>
    <?= $form->field($model,'news_title')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'newImg')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'news_company')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'newsTime')->textInput(); ?>
    <?= $form->field($model,'news_content')->textarea(['rows' => 6]); ?>
    <?= $form->field($model,'Report_Mailbox')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'like_count')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'comment_count')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'collect_count')->textInput(['maxlength' => true]); ?>
    <?= $form->field($model,'forward_count')->textInput(['maxlength' => true]); ?>
    <div class="form-group">
    <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>

<?php ActiveForm::end(); ?>

</div>

